import {I_themeConfig} from './themeConfig'
import { I_UserInfos } from './userInfos'
// 路由列表
export interface TagsViewRoutesState{
    tagsViewRoutes: Array<object>;
	isTagsViewCurrenFull: Boolean;
}
export interface I_routeMeta{
    icon: string,
    isAffix: boolean,
    isHide: boolean,
    isIframe: boolean,
    isKeepAlive: boolean,
    isLink: string,
    roles: Array<string>,
    title: string,
    isDynamic: boolean,
    isDynamicPath: string
}
export interface I_routeItem{
    path: string,
    name: string,
    meta: I_routeMeta,
    component: any,
    redirect: string,
    children?: Array<I_routeItem>,
    url: string
}
export interface RoutesListState {
	routesList: Array<I_routeItem>;
	isColumnsMenuHover: Boolean;
	isColumnsNavHover: Boolean;
}
//主题
export interface ThemeConfigState{
    themeConfig: I_themeConfig
}

// 用户模块
export interface UserInfosState {
    userInfos: I_UserInfos
}
// 全局state
export interface RootStateTypes {
    [x: string]: any;
    routesList: RoutesListState,
    themeConfig: ThemeConfigState,
    userInfos: UserInfosState
}

export {
    I_themeConfig,
    I_UserInfos
}